PHPR API (3.7.0)

Download OpenAPI specification:

PHPR API USING API-PLATFORM

invoice_lines

Creates a invoice_lines resource.

Creates a invoice_lines resource.

Authorizations:
JWT
path Parameters
id
required
string

invoice_lines identifier

Request Body schema:
required

The new invoice_lines resource

timestamp
string <date-time>
priority
integer
invoice
string <iri-reference>

Get invoice.

code
string or null
scan
string or null

Raw code scanned

price
required
string
discountPrice
required
string
number
required
string
Default: 1
taxes
required
boolean
Default: true
type
required
string <iri-reference>
taxCustoms
Array of strings <iri-reference> [ items <iri-reference > ]
product
string or null <iri-reference>
description
string or null
discountable
required
boolean
Default: true
owningCorporation
string <iri-reference>
convertedPrice
required
string
notes
string or null
deletedAt
string or null <date-time>
slug
required
string

DB Identifier

customProperties
any

Can contain anything (array, objects, nested objects...).

customData
Array of strings or null
createdAt
string <date-time>
updatedAt
string <date-time>
disabledAt
string or null <date-time>
object (Collection.jsonld)
upload_filename
string
upload_subfolder
string
upload_file
string
upload_file_link
string
number or (unknown_type or null) or (string or null)

Function to set discount prices on line, if applicable.

upload_Subfolder
string
upload_File
string
upload_File_Link
string

Responses

Request samples

Content type
{
  • "timestamp": "2019-08-24T14:15:22Z",
  • "priority": 0,
  • "invoice": "https://example.com/",
  • "code": "string",
  • "scan": "string",
  • "price": "string",
  • "discountPrice": "string",
  • "number": 1,
  • "taxes": true,
  • "taxCustoms": [],
  • "product": "https://example.com/",
  • "description": "string",
  • "discountable": true,
  • "owningCorporation": "https://example.com/",
  • "convertedPrice": "string",
  • "notes": "string",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "slug": "string",
  • "customProperties": null,
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "entityFiles": { },
  • "upload_filename": "string",
  • "upload_subfolder": "string",
  • "upload_file": "string",
  • "upload_file_link": "string",
  • "lineDiscountPrice": 0,
  • "upload_Subfolder": "string",
  • "upload_File": "string",
  • "upload_File_Link": "string"
}

Response samples

Content type
{
  • "@context": "string",
  • "@id": "string",
  • "@type": "string",
  • "timestamp": "2019-08-24T14:15:22Z",
  • "priority": 0,
  • "invoice": {
    },
  • "code": "string",
  • "scan": "string",
  • "price": "string",
  • "discountPrice": "string",
  • "number": 1,
  • "taxes": true,
  • "type": {
    },
  • "taxCustoms": [
    ],
  • "product": {
    },
  • "description": "string",
  • "owningCorporation": {
    },
  • "convertedPrice": "string",
  • "notes": "string",
  • "shortcode": "IL",
  • "id": 0,
  • "slug": "string",
  • "customProperties": null,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "parent": {
    },
  • "taxable": true,
  • "value": 0,
  • "lineValue": 0,
  • "convertedValue": null,
  • "displayTitle": "string",
  • "lineDisplayTitle": "string",
  • "displayCode": "string",
  • "lineDisplayCode": "string",
  • "customPropertiesListing": "string",
  • "uniqueId": "string",
  • "total": null,
  • "convertedTotal": null,
  • "correction": null,
  • "originalPrice": 0,
  • "taggingListing": "string"
}